package com.cloud.code.算法.链表;

public class Test {

    public static void main(String[] args) {

//        List list = new java.util.LinkedList();
//        list.add(null);
//        boolean contains = list.contains(null);
//        System.out.println(list);
//

        LinkedList<Integer> linkedList = new LinkedList<Integer>();

        linkedList.add(0,0);
        linkedList.add(1,1);
        linkedList.add(2,null);
        linkedList.add(2,2);
//
//        boolean contains = linkedList.contains(2);
//        System.out.println(contains);
        System.out.println(linkedList);
        System.out.println(linkedList.getSize());
        linkedList.remove(1);
        System.out.println(linkedList);
        System.out.println(linkedList.getSize());
    }
}
